<!-- ./skins/tpl/assets/form_edit_asset.tpl begin -->
<form action="" method="post">  
<h3>Актив:</h3>
<input class="caption" name="form[value2]" type="text" value="<?=$a['caption']?>"/><br /> 
<h3>Описание:</h3>
<textarea class="desc" name="form[value3]"><?=$a['description']?></textarea><br />
<h3>Теги:</h3>
<input class="caption" name="form[value4]" type="text" value="<?if(!empty($a_t))echo tags_to_line($a_t,0);?>"/><br />
<?if(!empty($available_domains)):?>

	<?foreach($available_domains as $a_d_key => $a_d):?>
	
		<p><input id="check_all_domains" type="checkbox" name="form[array1][<?=$a_d_key?>]" value="<?=$a_d['d_id']?>" <?if(!empty($domains_of_this_asset) && in_array($a_d,$domains_of_this_asset)) echo "checked";?> /> <?=$a_d['d_caption']?> </p>
		
	<?endforeach?>
	
<?endif?>

<script type="text/javascript">
function checkStateDom()
{
	checkBox = document.getElementById('check_all_domains');
	selectBox = document.getElementById('select_domains');
	if(checkBox.checked)
		selectBox.disabled = true;
	else
		selectBox.disabled = false;
}
</script>

<input name="ok" type="submit" value="Изменить"><br />
<a href="<?=href('page=assets','rem=delete','id='.$a['id'])?>">Удалить актив</a>
<br />  
</form>
<!-- ./skins/tpl/assets/form_edit_asset.tpl end -->
